import requests
# 实例化一个etree对象
from lxml import etree
res=requests.get("http://www.techlabplt.com:8080/BD-PC/priceList")
html=etree.HTML(res.text)
addressText=html.xpath('//*[@id="headAddress"]/span/text()')
print(addressText[0],":")
addPs=html.xpath('//*[@id="headAddress"]/div/p[position()<4]/text()')
for addP in addPs:
    print(“addP”)
